package com;

public class Huffman {

    public java.lang.String code = "";// 节点的哈夫曼编码
    public java.lang.String data = "";// 节点的数据
    public int count;// 节点的权值
    public Huffman left;
    public Huffman right;

    public Huffman(java.lang.String data, int count) {
        this.data = data;
        this.count = count;
    }

    public Huffman(int count, Huffman lChild,Huffman rChild) {
        this.count = count;
        this.left = lChild;
        this.right = rChild;
    }

    public Huffman getLeft() {
        return left;
    }

    public void setLeft(Huffman left) {
        this.left = left;
    }

    public Huffman getRight() {
        return right;
    }

    public void setRight(Huffman right) {
        this.right = right;
    }
}

